<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<br>
	<strong>当前父条目：</strong><span>编号：${Command.id }</span>&nbsp;&nbsp;&nbsp;<span>指令：${Command.command }</span>
	<br><br>
<div class="table-responsive">
	<table class="table table-striped table-hover table-bordered ">
		<thead>
			<tr class="info">
				<td>编号</td>
				<td>指令</td>
				<td>内容</td>
				<td>操作</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${Command.commandcontent_list }" var="CommandContent">
			<tr>
				<td class="id">${CommandContent.id }</td>
				<td><input type="text" class="description" value="${CommandContent.description }"></td>
				<td><textarea class="content" style="width: 400px">${CommandContent.content }</textarea></td>
				<td><button class="btn btn-primary" onclick="save(this)">保存修改</button>&nbsp;&nbsp;<button class="btn btn-danger" onclick="deleteCommandContent('${CommandContent.id }')">删除</button></td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>

<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/back/editcommand.js"></script>	

</body>
</html>